Private Declare Function VB_SendForm Lib "vb_sendform2.dll" (ByVal szLogPath As String, ByVal SMTP As String, ByVal SMRPPort As Long, ByVal szTo As String, ByVal szCC As String, ByVal szName As String, ByVal szFrom As String, ByVal szSubject As String, ByVal szDescription As String, ByVal szAttach As String, ByVal bDeleteAttachFileAfterSend As Long) As Long
Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" (ByVal lpApplicationName As String, ByVal lpKeyName As Any, ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, ByVal lpFileName As String) As Long
Global g_sLogPath As String
Global g_sSMTP As String
Global g_nSMTPPort As Long
Global g_sTo As String
Global g_sCC As String
Global g_sName As String
Global g_sFrom As String
Global g_sSubject As String
Global g_sDescription As String
Global g_sAttach As String
Sub Program_Main()
' ReturnToISAPI() Value
' =1: Sent HTML or IMAGE document to server and cut connection
' =2: Sent URL to jump and cut connection
Dim nRet As Long
Dim szIni As String
Dim bDeleteAttachFileAfterSend As Long
SetServerAdminiEmail ("your_addministrator_email") ' Set Addministrator E-Mail Address for error occurred